import { httpInstance } from '@/utils/request'

interface UpdateForemanAPIData {
  project_id: string
  foreman_id: string
}

export function updateForemanAPI(
  data: UpdateForemanAPIData,
  token: string,
) {
  return httpInstance.post<
    Record<string, any>,
    UpdateForemanAPIData
  >(
    'api/Project/updateForeman',
    data,
    { headers: { token } },
  )
}
